function getQueryStringByName(name) {
	const result = location.search.match(new RegExp(`[\?\&]${name}=([^\&]+)`, 'i'))
								|| location.hash.match(new RegExp(`[\?\&]${name}=([^\&]+)`, 'i'));
	if (result === null || result.length < 1) {
		return '';
	}
	return result[1];
}
const datePattern = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/;
export { getQueryStringByName, datePattern };
